package com.example.study.shardingjdbc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.study.shardingjdbc.object.MyOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface OrderMapper extends BaseMapper<MyOrder> {


    /**
     * 验证分表不分库
     * @param myOrder
     * @return
     */
    @Insert("delete from my_order where 1=1")
    int delAll();



}
